package com.tuo51.evaluate.vo;

import lombok.Data;

import java.math.BigInteger;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * 用来做批量统计
 */

@Data
public class IDCountDateVO {
    private String id;
    private BigInteger count;
    private Date date;

    public static HashMap<String, IDCountDateVO> toMap(List<IDCountDateVO> objectArrayList){
        HashMap<String, IDCountDateVO> ret = new HashMap<>();

        objectArrayList.stream().forEach(k->{
            ret.put(k.getId(), k);
        });

        return ret;
    }
}
